<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />

	<title>${title }</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<jsp:include page="../comm/GridJsFragment.jsp"></jsp:include>
	<script type="text/javascript" src="../js/DynamicGrid.js"></script>
	<script type="text/javascript">
		var obj = "${obj}";
		if(obj!=""){
			obj=eval("("+obj+")"); 
		}	
		var urlBaseParam = '${urlBaseParam}';

		if(urlBaseParam!=""){
			urlBaseParam=eval("("+urlBaseParam+")"); 
			Ext.apply(obj,{urlBaseParam:urlBaseParam});
		}	
		<logic:empty name="jsSrc">
		Ext.onReady(function(){
			new Ext.ux.DynamicGrid(obj).render();
		});
		</logic:empty>			
	</script>
	<logic:notEmpty name="jsSrc">
	<script type="text/javascript" src="${pageContext.request.contextPath}${jsSrc}"></script>
	</logic:notEmpty>
	
</head>

<body>
	<jsp:include page="../comm/GridBodyFragment.html"></jsp:include>
</body>
</html:html>
